<h2 class="contentTitle">发布活动</h2>
<div class="pageContent">
	<form action="/activity/update" method="post" class="pageForm required-validate"
	      onsubmit="return validateCallback(this, navTabAjaxDone);">
		<input type="hidden" name="activity.id" value="${activity.id}">
		<div class="pageFormContent nowrap" layouth="97">
			<dl>
				<dt>标题：</dt>
				<dd>
					<input class="textInput {required:true,maxlength:40}"
					       type="text" name="activity.title" size="100" value="${activity.title}">
					<span class="ui-form-required">*</span>
				</dd>
			</dl>

			<dl>
				<dt>活动城市：</dt>
				<dd>
					<input class="textInput {required:true,maxlength:10}"
					       type="text" name="activity.city" value="${activity.city}">
					<span class="ui-form-required">*</span>
				</dd>
			</dl>
			<dl>
				<dt>活动地点：</dt>
				<dd>
					<input type="text" name="activity.place" class="{required:true}" value="${activity.place}"/>
					<span class="ui-form-required">*</span>
				</dd>
			</dl>
			<dl>
				<dt>活动时间：</dt>
				<dd>
					<input class="date {required:true}"
					       type="text" name="activity.date_time"
					       datefmt="yyyy-MM-dd HH:mm" readonly="true" value="${activity.date_time}">
					<a class="inputDateButton" href="#">选择</a>
					<span class="ui-form-required">*</span>
				</dd>
			</dl>
			<dl>
				<dt>活动海报：</dt>
				<dd>
					<input type="hidden" id="poster_editor" name="activity.poster"
					       class="{required:true}" value="${activity.poster}">
					<input id="poster_edit" type="file" name="image"
					       uploaderOption="{
								swf:'/dwz/uploadify/scripts/uploadify.swf',
								uploader:'/image/upload',
								buttonText:'重新选择海报(建议尺寸&#58;580x300) *',
								fileSizeLimit:'200KB',
								fileTypeDesc:'*.jpg;*.jpeg;*.gif;*.png;',
								fileTypeExts:'*.jpg;*.jpeg;*.gif;*.png;',
								auto:true,
								width:200,
								multi:false,
								onUploadSuccess:function(file, data, response) {
									uploadSuccess(file, data, response);
								}
							}"
							/>
					<img src="${activity.poster}" width="580" height="300" id="poster_e_img">
					<script>
						function uploadSuccess(file, data, response) {
							$('#poster_editor').val(data);
							$('#poster_e_img').attr('src', data);
						}
					</script>
				</dd>
			</dl>
			<dl>
				<dt>活动状态：</dt>
				<dd>
					<input name="activity.status" type="radio" value="0"
					       <#if activity.status==0>checked="true"</#if>>未开始
					<input name="activity.status" type="radio" value="1"
					       <#if activity.status==1>checked="true"</#if>>报名中
					<input name="activity.status" type="radio" value="2"
					       <#if activity.status==2>checked="true"</#if>>已结束
					<input name="activity.status" type="radio" value="3"
					       <#if activity.status==3>checked="true"</#if>>已关闭
				</dd>
			</dl>
			<dl class="unit">
				<dt>活动概述：</dt>
				<dd>
					<textarea class="kindeditor" name="activity.desc" rows="15" cols="60">${activity.desc}</textarea>
				</dd>
			</dl>
			<dl class="unit">
				<dt>活动详情：</dt>
				<dd>
					<textarea class="kindeditor" name="activity.content" rows="20" cols="100">${activity.content}</textarea>
				</dd>
			</dl>
		</div>
		<div class="formBar">
			<ul>
				<li>
					<div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">修改</button>
						</div>
					</div>
				</li>
				<li>
					<div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div>
				</li>
			</ul>
		</div>
	</form>
</div>